# 节日节气数据（数据结构优化版）
class Festivals:
    @staticmethod
    def get_festivals(date) -> dict:
        """返回统一结构的节日数据"""
        month_day = f"{date.month:02d}-{date.day:02d}"
        festivals = {}

        if month_day in Festivals.CHINESE_FESTIVALS:
            festivals['chinese'] = Festivals.CHINESE_FESTIVALS[month_day]
        if month_day in Festivals.SOLAR_FESTIVALS:
            festivals['solar'] = Festivals.SOLAR_FESTIVALS[month_day]

        return festivals
